import requestApi from "../utils/request";

let base_url = "http://localhost:3000/api";
//用户名和密码登录
export const UserLoginApi = (user_name, user_password) => {
    return requestApi(base_url + "/user/login", {
        user_name,
        user_password
    }, 'post')
}
//获取短信验证码
//http://localhost:3000/api/user/sendcode
export const getPhoneCodeApi = (url, params, type) => {
    return requestApi(base_url + url, params, type)
}
//短信登录接口
//http://localhost:3000/api/user/phonelogin
export const phoneLoginApi = (url, params, type) => {
    return requestApi(base_url + url, params, type)
}